package com.example.decoratorParttern.decorator;

import com.example.decoratorParttern.model.Shape;

/**
 * 颜色模型装饰器--红色
 * sun 2017-12-15.
 */
public class RedShapeDecorator extends ShapeDecorator {
    public RedShapeDecorator(Shape decoratorShape) {
        super(decoratorShape);
    }

    @Override
    public void draw() {
        decoratorShape.draw();
        setRedBorder(decoratorShape);
    }

    private void setRedBorder(Shape decoratorShape) {
        System.out.println("Border Color : Red");
    }
}
